objects = main.o list.o 

main:$(objects)
	gcc -o main $(objects)

.PHONY:clean

%.o:%.c
	gcc -c $<

clean:
	rm *.o 
	rm main
